import Vue from 'vue'
import App from './App.vue'
import router from './router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import axios from 'axios'

import Vuex from 'vuex';
import cart from './store/modules/cart';
// 分页组件
// import Pagination from '@/components/Pagination'
// // 自定义表格工具组件
// import RightToolbar from '@/components/RightToolbar'

Vue.config.productionTip = false

Vue.use(ElementUI)
Vue.use(Vuex);
const store = new Vuex.Store({
  modules: {
    cart
  }
});
// 设置axios为Vue的原型属性
Vue.prototype.$axios = axios
// app.component('Pagination', Pagination)
// app.component('RightToolbar', RightToolbar)
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
